<?php

class TestController extends Controller
{
	/**
	 * Declares class-based actions.
	 */
	public function actions()
	{
		return array(
			// captcha action renders the CAPTCHA image displayed on the contact page
			'captcha'=>array(
				'class'=>'CCaptchaAction',
				'backColor'=>0xFFFFFF,
			),
			// page action renders "static" pages stored under 'protected/views/site/pages'
			// They can be accessed via: index.php?r=site/page&view=FileName
			'page'=>array(
				'class'=>'CViewAction',
			),
		);
	}
	public function actionShow()
	{
		//$model=new ShowForm;
            $name=$_GET['name'];
            $num=$_GET['num'];

//		if(isset($_POST['ShowForm']))
//		{
//			$model->attributes=$_POST['ShowForm'];
//			
//		}
		// display the login form
		$this->render('show',array('name'=>$name,'num'=>$num));
	}

}